package org.budo.xml;

import java.io.Serializable;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @author lmw
 */
@Getter
@Setter
@NoArgsConstructor
public class LazyFormatXml implements Serializable {
    private static final long serialVersionUID = -6183341582387194586L;

    private String xml;

    public LazyFormatXml(String xml) {
        this.xml = xml;
    }

    @Override
    public String toString() {
        return super.toString() + ", " + Xml.format(this.getXml());
    }
}
